<?php
    /**
     * Created by PhpStorm.
     * User: huangzhongwei
     * Date: 2018/10/24
     * Time: 9:08
     */

    namespace app\common\model;


    use think\Model;

    class Goods extends Model
    {
        protected $table = "goods";
        protected $autoWriteTimestamp = true;

//        public function getPriceAttr($value)
//        {
//            return round($value/100,2);
//        }


        public function goodsType(){
            return $this->belongsTo('GoodsType','goods_type_id');
        }
    }